class CreateSpuCategories < ActiveRecord::Migration[5.2]
  def change
    create_table :spu_categories do |t|
      t.integer :shop_id
      t.string :name
      t.string :avatar
      t.integer :sort, default: 0
      t.integer :parent_id

      t.timestamps
    end
  end
end
